A line segment (or segment) is a part of a line between two endpoints along the line. A line segment is named by the endpoints.